[body]
<script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/js/cms/make_tmce.js"></script>
<script>
	$(document).ready(function(){
	  $('#libe_name').change(function(){
	    if( !$('#libe_full_name').val() ){
	      $('#libe_full_name').val( $('#libe_name').val() );
			}
		});
	});
</script>
{error: }
<form class="cols typical">
	<div class="col c20 picture" style="height:122px;">
	  {libe_img}
	  <input type="file" name="ill">
	</div>
	<div class="col c70 ml5">
	  <div class="field">
		  <label>
				Name<br>
				<small>For user</small>
			</label>
		  <input type="text" name="libe_name" id="libe_name" required>
		  <!--err:libe_name-->
			<div class="clear"></div>
		</div>
		
	  <div class="field">
		  <label>
				Full name<br>
		    <small>Visible to trainer ONLY</small>
			</label>
		  <input type="text" name="libe_full_name" id="libe_full_name">
		  <!--err:libe_full_name-->
			<div class="clear"></div>
		</div>

		<div class="field">
		  <label>Category</label>
		    <select name="libe_cat">
		      <option value="">---</option>
     			<optiongroup source="sql:lib_ex_cat
															#lec_id id, lec_name name, lec_pid
															?lec_typ='cat'
															$order=lec_pid,lec_order,name
															direction=asc,asc,asc" group=lec_pid sections="lec_pid=name">
				</select>
				<!--err:libe_cat-->
			<div class="clear"></div>
		</div>
    <div class="field">
		  <label>Prescription group</label>
		  <select name="libe_appointment" required>
		      <option value="">---</option>
     			<options source="sql:lib_ex_cat
															#lec_id id, lec_name name
															?lec_typ='app'
															$order=lec_order,name,lec_id
															direction=asc,asc,asc">
		  </select>
		  <!--err:libe_appointment-->
		  <div class="clear"></div>
		</div>
	</div>

	<div class="clear "></div>
	<div class="field">
	  <label>Exercise description:</label>
  	<textarea name="libe_dscr" stype="html" style="width:100%; height:200px;"></textarea>
	</div>
	<div class="field" style="margin-left:25%;">
	  <div class="form_sep"></div>
		<input type="submit" value="save" class="button orange">
		<a href="{link-back}" class="button gray">Cancel</a>
		<div class="clear"></div>
	</div>
</form>
[libe_img]
	<img src="{libe_img}?id={rand}" >
[not_libe_img]
	<img src="/img/exs/def.jpg" >